package com.zys.el.core.po;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;
/**
 * @author zys
 * @file BaseController.java
 * @Copyright (C) http://www.zys.com
 * @email 1399727925@qq.com
 * @date 2022-12-26
 */
@NoArgsConstructor
public class ResponseBean implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 成功标记
	 */
	private boolean success = true;
	/**
	 * 提示信息
	 */
	private String msg = "操作成功";
	/**
	 * 添加，修改的实体类
	 */
	private Object model;

	/**
	 * http状态码
	 */
	private int code = 200;

	/**
	 * session id
	 */
	private String token;

	public ResponseBean(Object model) {
		this.model = model;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getModel() {
		return model;
	}

	public void setModel(Object model) {
		this.model = model;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}
